31. Araxis Merge File Comparison Report

Produced by Araxis Merge on 2023-07-12 04:42:37 +0000. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

31.1 Files compared

#LocationFileLast Modified
1Porto v4.0.5/Theme Files/Porto Theme/app/code/Mageplaza/LayeredNavigation/Plugin/Controller/CategoryView.php2017-05-17 08:25:12 +0000
22023-07-12 04:42:37 +0000

31.2 Comparison summary

DescriptionBetween
Files 1 and 2
Text BlocksLines
Unchanged00
Changed00
Inserted00
Removed165

31.3 Comparison options

WhitespaceConsecutive whitespace is treated as a single space
Character caseDifferences in character case are significant
Line endingsDifferences in line endings (CR and LF characters) are ignored
CR/LF charactersNot shown in the comparison detail
Active line-pairing rules

31.4 Active regular expressions

No regular expressions were active.

31.5 Comparison detail

1 <?php    
2 /**    
3  * Mageplaza    
4  *    
5  * NOTICE OF LICENSE    
6  *    
7  * This source file is subject to the Mageplaza.com license that is    
8  * available through the world-wide-web at this URL:    
9  * https://www.mageplaza.com/LICENSE.txt    
10  *    
11  * DISCLAIMER    
12  *    
13  * Do not edit or add to this file if you wish to upgrade this extension to newer    
14  * version in the future.    
15  *    
16  * @category    Mageplaza    
17  * @package     Mageplaza_LayeredNavigation    
18  * @copyright   Copyright (c) 2017 Mageplaza (http://www.mageplaza.com/)    
19  * @license     https://www.mageplaza.com/LICENSE.txt    
20  */    
21     
22 namespace Mageplaza\LayeredNavigation\Plugin\Controller\Category;    
23     
24 /**    
25  * Class View    
26  * @package Mageplaza\LayeredNavigation\Controller\Plugin\Category    
27  */    
28 class View    
29 {    
30 »       /** @var \Magento\Framework\Json\Helper\Data */    
31 »       protected $_jsonHelper;    
32     
33 »       /** @var \Mageplaza\LayeredNavigation\Helper\Data */    
34 »       protected $_moduleHelper;    
35     
36 »       /**    
37 »        * @param \Magento\Framework\Json\Helper\Data $jsonHelper    
38 »        * @param \Mageplaza\LayeredNavigation\Helper\Data $moduleHelper    
39 »        */    
40 »       public function __construct(    
41 »       »       \Magento\Framework\Json\Helper\Data $jsonHelper,    
42 »       »       \Mageplaza\LayeredNavigation\Helper\Data $moduleHelper    
43 »       )    
44 »       {    
45 »       »       $this->_jsonHelper   = $jsonHelper;    
46 »       »       $this->_moduleHelper = $moduleHelper;    
47 »       }    
48     
49 »       /**    
50 »        * @param \Magento\Catalog\Controller\Category\View $action    
51 »        * @param $page    
52 »        * @return mixed    
53 »        */    
54 »       public function afterExecute(\Magento\Catalog\Controller\Category\View $action, $page)    
55 »       {    
56 »       »       if ($this->_moduleHelper->isEnabled() && $action->getRequest()->isAjax()) {    
57 »       »       »       $navigation = $page->getLayout()->getBlock('catalog.leftnav');    
58 »       »       »       $products   = $page->getLayout()->getBlock('category.products');    
59 »       »       »       $result     = ['products' => $products->toHtml(), 'navigation' => $navigation->toHtml()];    
60 »       »       »       $action->getResponse()->representJson($this->_jsonHelper->jsonEncode($result));    
61 »       »       } else {    
62 »       »       »       return $page;    
63 »       »       }    
64 »       }    
65 }